package vip.idiy.anwei_android_iot.enums;


import java.util.ArrayList;
import java.util.List;

import vip.idiy.anwei_android_iot.R;
import vip.idiy.anwei_android_iot.dialog.IconInterface;
import vip.idiy.anwei_android_iot.domin.IconEntity;

/**
 * ClassName SceneIconEnum
 * describe: 位置图标枚举类,如果需要添加图标,把图标放在mipmap-hdpi包下,像下面添加代码即可使用
 * Created: 勇
 * Email:118085890@qq.com
 * Version: 1.0
 * Create in 14:05 2022/11/26
 */
public enum SceneIconEnum {
    bedroom("卧室", R.mipmap.icon_bedroom),
    guest("客卧",R.mipmap.icon_guest),
    secondary("次卧",R.mipmap.icon_secondary),
    study("书房", R.mipmap.icon_study),
    drawing("客厅",R.mipmap.icon_drawing),
    balcony("阳台",R.mipmap.icon_balcony),
    sdbalcony("次阳台",R.mipmap.icon_sdbalcony),
    kitchen("厨房",R.mipmap.icon_kitchen),
    shower("浴室",R.mipmap.icon_shower),
    toilet("卫生间",R.mipmap.icon_toilet),
    carbarn("车库",R.mipmap.icon_carbarn),
    storehouse("仓库",R.mipmap.icon_storehouse),
    lumber("杂物房",R.mipmap.icon_lumber),
    pet("宠物房",R.mipmap.icon_pet);

    private String iconName;
    private int icon;

    SceneIconEnum(String iconName, int icon){
        this.iconName =iconName;
        this.icon = icon;
    }

    public String getIconName() {
        return iconName;
    }

    public void setIconName(String iconName) {
        this.iconName = iconName;
    }

    public int getIcon() {
        return icon;
    }

    public void setIcon(int icon) {
        this.icon = icon;
    }

    public static List<IconEntity> toList() {
        List<IconEntity> list = new ArrayList<>();
        for (SceneIconEnum sceneIconEnum : SceneIconEnum.values()) {
            IconEntity iconEntity = new IconEntity(sceneIconEnum.getIconName(), sceneIconEnum.getIcon());
            list.add(iconEntity);
        }
        return list;
    }
}
